<!DOCTYPE html>
<!-- saved from url=(0029)http://hackerzhou.me/ex_love/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Our Love Story</title>
	
	<style type="text/css">
		@font-face {
			font-family: digit;
			src: url('digital-7_mono.ttf') format("truetype");
		}
	</style>
	<link href="./Our Love Story_files/default.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="./Our Love Story_files/jquery.js"></script>
	<script type="text/javascript" src="./Our Love Story_files/garden_dev.js"></script>
    <script type="text/javascript" src="./Our Love Story_files/functions_dev.js"></script>
</head>

<body>
	<div id="mainDiv">
		<div id="content" style="width: 1110px; height: 625px; margin-top: 10px; margin-left: 77.5px;">
			<div id="code" style="margin-top: 112.5px;"></div>
			<div id="loveHeart">
				<canvas id="garden" width="670" height="625"></canvas>
				<div id="words">
					<div id="messages">
						Minyue, I have fallen in love with you for
						<div id="elapseClock"><span class="digit">6</span> year <span class="digit">10</span> month <span class="digit">15</span> day <span class="digit">18</span> hr <span class="digit">47</span> min <span class="digit">37</span> sec</div>
					</div>
					<div id="loveu">
						Love u forever and ever.<br>
						<div class="signature">- hackerzhou</div>
					</div>
				</div>
			</div>
		</div>
		<div id="copyright">
			Inspired by <a href="http://www.openrise.com/lab/FlowerPower/">FlowerPower</a> project.<br>
			Copyright © 2014 <a href="http://hackerzhou.me/">hackerzhou.me</a> 2009-2014
		</div>
	</div>
	<script type="text/javascript">
		var offsetX = $("#loveHeart").width() / 2;
		var offsetY = $("#loveHeart").height() / 2 - 55;
		var displayMode = 1;
		var together = new Date();
		together.setFullYear(2010, 10, 2);
		together.setHours(20);
		together.setMinutes(0);
		together.setSeconds(0);
		together.setMilliseconds(0);
		
		$("#loveHeart").click(function(){
			displayMode *= -1;
			timeElapse(together, displayMode);
		});
		
		if (!document.createElement('canvas').getContext) {
			var msg = document.createElement("div");
			msg.id = "errorMsg";
			msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+"; 
			document.body.appendChild(msg);
			$("#code").css("display", "none")
			$("#copyright").css("position", "absolute");
			$("#copyright").css("bottom", "10px");
		    document.execCommand("stop");
		} else {
			setTimeout(function () {
				adjustWordsPosition();
				startHeartAnimation();
			}, 5000);

			timeElapse(together, displayMode);
			setInterval(function () {
				timeElapse(together, displayMode);
			}, 500);

			adjustCodePosition();
			$("#code").typewriter();
		}
	</script>


</body></html>